<template>
  <div>
    <el-pagination
      background
      layout="prev, pager, next, total, sizes"
      v-model:page-size="page.pageSize"
      :page-sizes="[1, 5, 10, 20]"
      v-model:current-page="page.pageNumber"
      :total="page.total"
      @current-change="infoChange"
      @size-change="infoChange"
    />
  </div>
</template>
<script setup lang="ts">
import { ref } from 'vue';
defineProps(['page']);

const emits = defineEmits(['dochange']);
const infoChange = () => {
  emits('dochange');
};
</script>
<style scoped></style>
